package exception_exercise;

public class Student1 {
    private int age1;

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        if(age1<0 || age1>100){
            throw new RuntimeException();
        }
        this.age1 = age1;
    }
}
